﻿using System;

namespace awsomeSyntezator.PipeLine.Envelopes
{
    class FadeOut : Envelope
    {
        public FadeOut(float _strengh) : base(_strengh)
        {
        }

        public override double getSample(int n, double sample)
        {
            return sample * (Math.Atan((1 - n * Options.step) * (Options.maxEnvelopeStrengh-strengh+1)));
        }

    }
}
